<?php

namespace App\Rules;

class AnchorAuthorValidate extends BaseValidate
{
    //验证规则
    protected $rule = [
        'author_id' => 'required',
        'nickname' => 'required',
//        'anchor_id' => 'required'
    ];
    //自定义验证信息
    protected $message = [
        'author_id.required' => '达人id不能为空',
        'nickname.required' => '达人名称不能为空',
//        'anchor_id.required' => '主播不能为空'
    ];

    //自定义场景
    protected $scene = [
//        'add' => "title,content",
//        'edit' => ['anchor_id', 'anchor_type_id'],
    ];
}
